package cc.ailley.proxy.dynamic.jdk;

import cc.ailley.proxy.IUserDao;
import cc.ailley.proxy.IUserDaoImpl;

public class JDKProxyFactoryTest {

    public static void main(String[] args) {
        IUserDao iUserDao = new IUserDaoImpl();
        JDKProxyFactory jdkProxyFactory = new JDKProxyFactory(iUserDao);
        IUserDao obj = (IUserDao) jdkProxyFactory.getInstance();
        obj.save();
    }
}
